#!/bin/bash

SCRIPT_DIR=$(cd `dirname $0` && pwd)
cd $SCRIPT_DIR

# Compress the file
#upx ./_install/bin/*
#upx ./_install/lib/*

mkdir -p ../../build/home/yi-hack-v5/bin/
mkdir -p ../../build/home/yi-hack-v5/lib/
mkdir -p ../../build/home/yi-hack-v5/etc/

rsync -a ./_install/tmp/sd/yi-hack-v5/bin/* ../../build/home/yi-hack-v5/bin/
rsync -a ./_install/tmp/sd/yi-hack-v5/lib/* ../../build/home/yi-hack-v5/lib/
rsync -a ./_install/tmp/sd/yi-hack-v5/etc/* ../../build/home/yi-hack-v5/etc/
